@isTest
private class AASCampaignFlightTrigger_Test {

    static testMethod void Coveragemethod() 
    {
    Account acc2 = new Account();
    acc2.Name = 'accountTest';
    insert acc2;
    Opportunity opp = new Opportunity();
    opp.RecordTypeId = RecordTypeHelper.GetRecordTypeId('Opportunity', 'Advanced Ad Solutions');
    opp.AccountId = acc2.Id;
    opp.Name = 'AAS opp test';
    opp.StageName = 'Verbal Confirmation of Sale';
    opp.CloseDate = Date.today().addDays(1);
    opp.Credit_Check_Info_Secured__c='Yes';
    opp.Contract_Start_Date__c=date.today();
    opp.Contract_Termination_Date__c=date.today();
    opp.Amount=1000;
    opp.LeadSource='Cold Call';
    try{insert opp;}
    catch(exception e){system.debug('Error:'+e);}
    opp.Contract_Start_Date__c=Date.today().addDays(1);
    try{update opp; }
    catch(exception e){system.debug('Error:'+e);}
    opp.StageName='Proposal sent to client';
    opp.Contract_Start_Date__c=Date.today().addDays(1);
    try{update opp; }
    catch(exception e){system.debug('Error:'+e);}
    }
}